//api文件仍保留但不建议使用，推荐使用models中的api。API files remain preserved (deprecated), use models APIs instead.
import type { UctooUser, UctooUserResponse } from './types.js';

import { requestClient } from '#/api/request';

export const getuctooUctooUserList = async (page: number, pageSize: number,
  searchParams?: any) => {
  return requestClient.get<UctooUserResponse>(`/uctoo/uctoo_user/${pageSize}/${page}`,{
    params: searchParams,
  });
};

export const getuctooUctooUser = async (id: string) => {
  return requestClient.get<UctooUser>(`/uctoo/uctoo_user/${id}`);
};

export const adductooUctooUser = async (data: Partial<UctooUser>) => {
  return requestClient.post<UctooUser>('/uctoo/uctoo_user/add', data);
};

export const edituctooUctooUser = async (data: Partial<UctooUser>) => {
  return requestClient.post<UctooUser>('/uctoo/uctoo_user/edit', data);
};

export const deleteuctooUctooUser = async (id: string) => {
  return requestClient.post<any>('/uctoo/uctoo_user/del', { id });
};
